<style>

</style>
<div class="panel panel-primary" id='angular'>
  <div class="panel-heading">
    <div class="panel-title">双向数据绑定</div>
  </div>
  <div class="panel-body">
    <div class="row">
      <div class="col-md-12">
        <form role="form" class="form-horizontal" ng-controller="UserInfoController">
          <div class="form-group">
            <label class="col-md-2 control-label">
              EMail:
            </label>
            <div class="col-md-10">
              <input type="email" class="form-control" placeholer="dialer@126.com" ng-model="userInfo.email">
            </div>
          </div>
          <div class="form-group">
            <label class="col-md-2 control-label">
              Password:
            </label>
            <div class="col-md-10">
              <input type="password" class="form-control" ng-model="userInfo.password">
            </div>
          </div>
          <div class="form-group">
            <label class="col-md-offset-2 col-md-10">
              <div class="checkbox">
                <label>
                  <input type="checkbox" ng-model="userInfo.autoLogin">Auto Login
                </label>
              </div>
            </label>
          </div>
          <div class="form-group">
            <div class="col-md-offset-2 col-md-10">
              <button class="btn btn-default" ng-click="getFormData()">获取表单的值</button>
              <button class="btn btn-default" ng-click="setFormData()">设置表单的值</button>
            </div>
          </div>
        </form>
      </div>
    </div>
  </div>
</div>